package org.darkforest.merchant.constants;

import java.io.UnsupportedEncodingException;

/**
 * Created by valentina on 15/1/30.
 */
public class MerchantConstant {
    public static final String PUBLISH_GOODS_SUCCESS ="商品发布成功";
    public static final String PUBLISH_GOODS_FAIL ="商品发布成功";


    /**
     *商品下架状态
     */
    public static final String GOODS_STUTS_OFFLINE = "0"; //下架
    /**
     *商品上架状态
     */
    public static final String GOODS_STUTS_ONLINE = "1"; //上架
    /**
     *商品删除状态
     */
    public static final String GOODS_STUTS_DELETE = "9"; //商品已删除状态

    /**
     *商品违规状态
     */
    public static final String GOODS_STUTS_FORBIDDEN = "10"; //违规禁用




    public static String encodeStr(String str) {
        try {
            return new String(str.getBytes("ISO-8859-1"), "UTF-8");
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            return null;
        }
    }

}
